/***************************************************************************
 *   Copyright (C) 2008 by JBox systems
 *   gabi@shaargiora.co.il
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program; if not, write to the
 *   Free Software Foundation, Inc.,
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 ***************************************************************************/

#pragma once

#include <vector>
#include <string>

#include "application.h"

/**
	Reads folder and extracts Application objects.

	@param path Path to folder.
	@return Applicatoin vector of found apps.
*/
std::vector<Application> loadApplicationDatabase(const char* path);

/**
	Load first text line from file.

	@param filename File to load from.
	@return String if loaded, else empty string.
*/
std::string stringFromFile(std::string filename);

#ifdef Q_OS_WIN32
namespace windowsUtils {
/**
	Check vista UAC state.
	
	Uses registry to check.
	
	@return UAC active state
*/

bool UACState();

/**
	Set vista UAC state.
	
	Sets in registry. Requires a reboot.

	@param state UAC state to set.
*/

void setUACState(bool p_state);
}
#endif
